home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 023a / fm40.zip / LESSON2.FRM (.txt) < prev    next >
Form Master Form  |  1991-09-25  |  6KB  |  76 lines

  1. Lesson 2 - Using Attributes
  2. Steps for building a form:
  3. 1.  Design your form on paper.
  4. 2.  Enter text onto blank form (Lesson 1)
  5. 3.  Add input fields to form (Lesson 2)
  6.  You are here  
  7. 4.  Add borders to your form (Lesson 3)
  8. 5.  Add special printer control functions (Lesson 4)
  9. You should proceed through these lessons in order.  If you make any mistakes  
  10. just reload the form and begin editing again.
  11. What is an Attribute
  12. An attribute defines how a character is seen on your monitor.  It defines 
  13. the color and background (if you have a color monitor), or intensity,
  14. inverse video, and underlining (if you have a monochrome monitor) of each 
  15. character on your display.  It also controls blinking which is supported  
  16. by both monitors.  Each character has its own attribute.
  17. Note that the top line of your display has black text with a white
  18. background.  Its attribute is different than the rest of the screen.
  19.   Press PgDn
  20. Attributes
  21. The following line shows examples of text with different attributes:
  22. xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
  23. Try moving the cursor across this line of "xx's".  On the top line, the
  24. attribute for the cursor changes to reflect the character the cursor is
  25. below.
  26. Cursor: 24,  1 | 07 
  27. row, col| attribute
  28. There are 256 different possibilities, but some of these are invisible
  29. in that the character will be the same color as the background and some
  30. are not supported by the monochrome display adaptor.
  31. To see some of the possible attributes available, press F2 to view the
  32. 'Special Characters, Attributes' menu, then press ESC to get back here.
  33.   Press PgDn
  34. Special Characters, Attributes Menu (F2)
  35. This menu allows you to do two things:
  36.      o  Select any character in the IBM character set.  You can enter it  
  37. on your form using F10.
  38.      o  Define a new attribute to use when entering text on your form.
  39. This menu has three functions.  Switch functions by pressing ENTER:
  40.      o  Select special character (special character in big box will blink)
  41.      o  Select foreground character attribute
  42.      o  Select background character attribute
  43. All selections are made using the cursor control keys.
  44. Now try it out.  Press F2, followed by various ENTERs and cursor
  45. arrow keys.  Then press ESC to return here.
  46.   Press PgDn
  47. Use Of Fields
  48. Fields are normally used for data entry on a form.  FORM MASTER requires  
  49. that text input fields be a different attribute so it knows where they
  50. are.  You can have up to 500 input fields on your form but you are
  51. limited to a maximum of four different attributes.  These attributes
  52. must be specified on the editor pop-up menu so FORM MASTER knows what
  53. they are.  To see the pop-up menu press ESC, then F3 to return.
  54. Example:
  55. The following 4 character field has an attribute of 70:
  56. The following 3 character field has an attribute of 0F:  
  57. Note the first field is blank filled and the second has "
  58.   Press PgDn
  59. Practice
  60. Move the cursor to the '*' below, press F8, then press the space bar
  61. 4 times:
  62. Now press Tab and type 'abcd'.  You have just defined an inverse field
  63. filled with blanks and another one filled with 'abcd'.  The attribute is  
  64. '70' (the current attribute is always changed to '70' when you press F8). 
  65. If you place a '70' in one of the 'Input Field Attributes' fields on the  
  66. editor pop-up menu, the above fields would become input fields.  The
  67. first one is blank and the second one has a default value of 'abcd' which 
  68. can be typed over when you're executing the form.
  69. Important keys to remember:  F7 to switch to '07' (normal white on black  
  70. background).  F8 to switch to '70' (inverse video - black on white).
  71. F2 to define any attribute.  F9 to switch to any attribute.  The top
  72. line will show what the current attribute is:
  73.  +Current Attr: 70
  74. Move to right side of this form and practice use of many different attributes.
  75.   End of Lesson 2  
  76.